home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / zsh / Source / help / if < prev    next >
Encoding:
Text File  |  1993-10-08  |  985 b   |  25 lines

  1.               if list
  2.               then list
  3.               [ elif list ; then list ] ...
  4.               [ else list ]
  5.               fi     The if list is executed, and, if it  returns
  6.                      a  zero  exit  status, the then list is exe-
  7.                      cuted.  Otherwise, the elif list is executed
  8.                      and,  if its value is zero, the then list is
  9.                      executed.   If  each   elif   list   returns
  10.                      nonzero, the else list is executed.
  11.  
  12.               if ( list ) sublist
  13.                      A short form of if.
  14.  
  15.               if ( list ) {
  16.               list
  17.               } elif ( list ) {
  18.               list
  19.               } ... else {
  20.               list
  21.               }      An  alternate  form  of  if. The parentheses
  22.                      surrounding list can be omitted if the  only
  23.                      command in the list is a conditional expres-
  24.                      sion of the form [[ exp ]] (see below).
  25.